home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / QC™ 1.1.3 / QCAPI / BadAPPL / BadAPPL.rsrc / BadAPPL.rsrc.rsrc / STR#_132.txt < prev    next >
Encoding:
Text File  |  1995-04-23  |  676 b   |  30 lines

  1.  
  2. <Dereferncing Zero Test>
  3. NOTE THAT THIS TEST CAUSES AN INTENTIONAL BUS ERROR!
  4. Creating a test handle‚Ķ
  5.  
  6. Error! Couldn‚Äôt get a lousy 1k of memory.  Why, why, why?
  7.  
  8. Test handle created at: 
  9.  
  10. Test handle marked as purgeable.
  11. Now creating another handle‚Ķ
  12.  
  13. This will cause the test handle to be purged even though there is over 1k of memory free in the heap.
  14.  
  15. QC is -NOT ACTIVE- so the test handle will not be purged!
  16.  
  17. Test handle has been purged!
  18.  
  19. Test handle -WAS NOT- purged!
  20.  
  21. Now trying to access data from the handle‚Ķ
  22.  
  23. This will dereferencing zero and cause a bus error!
  24.  
  25. QC is -NOT ACTIVE- so you may not get a bus error.  Bummer huh?
  26.  
  27. <Purge Memory Test Complete>
  28.  
  29.  
  30.